package com.wh.music.Util;

public enum ResultCode {
  SUCCESS(1, "成功"),
  PARAM_IS_INVALID(1001, "参数无效"),
  PARAM_IS_BLANK(1002, "参数为空"),
  PARAM_TYPE_BIND_ERROR(1003, "参数类型错误"),
  PARAM_NOT_COMPLETE(1004, "参数缺少"),
  USER_NOT_LOGGED_IN(2001, "用户未登录，访问的路径需要验证"),
  USER_ACCOUNT_ERROR(2002, "账号密码错误"),
  USER_NOT_EXIST(2004, "用户不存在"),
  USER_HAS_EXISTED(2005, "用户已存在");

  private Integer code;
  private String message;

  ResultCode(Integer code, String message) {
    this.code = code;
    this.message = message;
  }
  public Integer code() {
    return this.code;
  }
  public String message() {
    return this.message;
  }
}


/*
  200  请求成功
  301  资源被永久转移到其他URL
  404  请求的资源不存在
  500  内部服务器错误



 */
